/**
 * 
 */
package org.insia.smartposse.metier;

import org.insia.smartposse.metier.webservice.LightCompany;


/**
 * @author raguerri
 * @since 11 avr. 07
 * @version 0.0.1
 * 
 */
public class Company
extends User {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1006564777339746229L;
	private String _name;
	private String _address;
	private String _url;
	
	/**
	 * Empty constructor for Company
	 *
	 */
	public Company() {
	}

	/**
	 * Full constructor
	 * @param id
	 * @param login
	 * @param password
	 * @param firstName
	 * @param lastName
	 * @param gender
	 * @param email
	 * @param name
	 * @param address
	 * @param url
	 */
	public Company(long id, String login, String password, String firstName, String lastName, int gender, String email, String name, String address, String url) {
		super(id, login, password, firstName, lastName, gender, email);
		this._address = address;
		this._name = name;
		this._url = url;
	}
	/**
	 * Full setter
	 * @param id
	 * @param login
	 * @param password
	 * @param firstName
	 * @param lastName
	 * @param gender
	 * @param email
	 * @param name
	 * @param address
	 * @param url
	 */
	public void setParams(long id, String login, String password, String firstName, String lastName, int gender, String email, String name, String address, String url) {
		this._id = id;
		this._login = login;
		this._password = password;
		this._firstName = firstName;
		this._lastName = lastName;
		this._gender = gender;
		this._email = email;
		this._address = address;
		this._name = name;
		this._url = url;
	}

	/**
	 * Getter for the address.
	 * @return the address.
	 */
	public String getAddress() {
		return _address;
	}


	/**
	 * Setter for the address.
	 * @param address the address to set.
	 */
	public void setAddress(String address) {
		this._address = address;
	}


	/**
	 * @return the _name
	 */
	public String getName() {
		return _name;
	}
	/**
	 * @param _name the _name to set
	 */
	public void setName(String name) {
		this._name = name;
	}
	/**
	 * @return the _url
	 */
	public String getUrl() {
		return _url;
	}
	/**
	 * @param _url the _url to set
	 */
	public void setUrl(String url) {
		this._url = url;
	}
	/**
	 * lcatet the webservice Company representation
	 */
	public LightCompany setLight() {
		LightCompany lcomp = new LightCompany(this);
		return lcomp;
	}

}
